require translate in constructor to prevent errors when including script in <head>
v0.5.1