Modularized dashboard.js by making custom function of ajax posting
created custom function to handle ajax get requests