model classes and javascript samples