modify js scale