Added jsData view method to pass data from php to javascript easily. Data is formatted as a global javascript object named sq. Data can also be set to the view/js-data config parameter.