cleaned up csci-3130.js