fixed template and added js script src