Andy: fixed javascript class reference error