converted a_search to coffee
converted all js to coffee