Javascript Javascript Canvas Reference scale