fix model->schema
check js with http://www.javascriptlint.com/ to almost all .js