jsNub - core javascript for web usage