some cleanup and jshint fixes
version switching in frame