Externalized the utility javascript.