js to own file

this is good style for web application
Brousers use cashed files when download it once