various updates, introduced modular js (wip)