template

added type to all javascript references