slimming down the code by removing the scripts template