JS Refactoring/Cleanup & added jGrowl for toasts