Fixed javascript syntax problem