add a javascript file at index page