A simple function that enables for java-like object inheritance in javascript