add maze.js as main function

Signed-off-by: fantaros <fantasymon@gmail.com>