Added a jslinted javascript called densityScope.js with some helped methods