Ported genVertexShader() and genFragmentShader().

Added shader-utils.js with a couple of ported helper functions.

Signed-off-by: Janusz Sobczak <janusz.sobczak@mobica.com>