Sends level info to "levelswitch" JS event