whippet js updates, init function added