dynamic javascript files generation