Revising javascripts