javascript plus gems and search