separated common functionality to SPBackbone.js library