Refactors to coffee script. Adds seeking.