Updated site structure to use new javascript functions