Old human library coffescript partially converted to javascript and more modular layout