added v2f/v3f javascript snippets