add js settings and fix link script