Simplify core.js

Signed-off-by: Oleg Bulatov <oleg@bulatov.me>
Added uniq-id module

Signed-off-by: Oleg Bulatov <oleg@bulatov.me>