Uses javascript to set game width n height