added a function for whether injecting java scripts
Merge branch 'master' of github.com:crosslink/xlink