Prevents you from trying to save non valid js