Cleaned up some bad JS.