Updated: added viewhelper to embed javascript