Removed dead JS code