pulled js into separate file