javascript working on original