Added common javascript used on front end of the public sites.