Cleaned up the javascript