move word test to separate javascript file