Cleaned up issues with JavaScript code and Google Closure requirements. Added missing ISelectionModel to JavaScript framework.