fixed script references and added copy of jquery