fixed path issue with loading javascripts