Cleaned up options javascript file a bit