Javascript inheritance: is my solution correct?
It's generally a bad idea to try writing code in one language as if it were a different language. 

Don't fight your tool; use it as it was designed. JavaScript has prototype-based OO rather than class-based OO, so use it like that.

Read "Javascript - the Good Parts" and learn to write actually good JavaScript rather than "Java in JavaScript" (for which other developers working with your code will hate and/or mock you).