Notifications fix

Just needed to exteralize js