Reverting Cyb unnecessary changes to Javascript functionality.