basic javascript class at hack reactor