Redundant javascript