added search function
total revamp, using direct js api instead of gem