added js files in appropriate way