Cleaned up anno extraction JS

Per some suggestions here: http://www.jshint.com/