updated test.html and fixed .translate()