created js and tests directories. Moved index.js into js folder