Clean up cursor.js