Fixing javascript error (missed comment)