style changes - indentation & breaking lines into multiple lines

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