Removed unnecessary js code.
Added SLADASHBOARD_ENDPOINT variable.