Fixed the javscript reference error