refactor(pages): move classes to js

index, template, upload pages; test it

time: 1h:20