Cleaned up JS code