JavaScript wrapper for nextweb-fn