Cleaned up JS file