UI JS 0.7beta

Various small updates & refactoring