Removed extra lines from js