update javascript to provide tagging functionality and suggested tag functionality