removing test code & fixing dropdown javascript