Correct equality verifications, add version and constant creation function for objects (JavaScript)
Signed-off-by: Nightmaster <nightmaster@seitaer.com>