Introduces js selectors

This commit uses Github style guide that can be found here:
https://github.com/styleguide/javascript