Extract js into separate script file.