JS: naively switch to using texture rather than the deprecated texture2D

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>