more features! todo: ajax back history save and mailer
working back and history after ajax requests
move js into its own file
add mailer