Removed the enable method and fixed the JSHint problem