added multi-word term javascript support