initial set up using JS