separating javascript class files