Reverted javascript that is not relevant to this PR