Working on a complete example for jsgameviewer template