Fixed some JS issues
Cleaned code (JsHint)
Added search
JSHint
Fixed error