Class Constructor For Javascript