Ruby Class Variable Inheritance In Javascript