using pure js instead atom.js =)