This has no place here. The data-width attribute is a semantic attribute indicating an internal property of the game. Don't use it as a presentation element indicating visual size. Use Javascript to read the game's semantic attributes and display every element you need appropriately.