simplified js file