moving js into res folder