picks the right js file