add ramda.js
use some Ramda functions for refactoring
use R.tail for getting arguments
use some curry