Remove js libs

This removes references to jquery-ui and underscore libraries to optimize loading time.
The jquery-ui library wasn't used at all while underscore was only used for a single `_.isUndefined()` call which could easily be replaced with a boolean check.