split js into separate file