Fixed javascript prob