make requireable from javascript & polish