[#313,model][s]: use jquery promise api if available.
[build][s]: regular build of js and css.