style changes - indentation & breaking lines into multiple lines

just styling on index.js to make it easier to read for me
is it okay?