Updates to all front end scripts

Everything is described in the commits - let me know if you have any questions.

Thanks!