Split out html and js' scripts in pages