moving js to src/views