Fixed routing between main page and js files