Removing alerts from js