Firefox OS application to calculate Mahjong score