JS class for the win