Some fixed javascript