How to autofill using Javascript on Joomla