some js syntax fix
some more javscript fixes