added javascript file and fixed bug that closed drop down when clicking on input form