Adjusted suggest.js to plugin