separated js into another file