updated nginx conf
restructured js to include folder structure