javascript move to seprate files