Core js file - updated

Fixed config bugs, no need for the user to call .setup()