javascript for phrasese