Base: Clean up Javascript code using JSHint