added js to main