migrating js to static files