add beginning of js file