Fixed javascript nits