Replace js to external file