Initial commit of javascript class

Signed-off-by: Matthew Potter <mdpotter@gmail.com>