Fixed javascript