Cleaned up JS.