added model and some javascripts