Vim: DRY up JS and JSX snippets

As of Vim 7.4, UltiSnips allows you to define python functions in your
.vim/pythonx directory. This allows me to move helper functions that I
want to use in multiple snippets into a place that they can be reused.

This commit kicks this off by moving a function that converts a basename
of a filename to PascalCase.