Fixed some syntax in javscript at footer