Modified JS now works to Endgame