separated js into file