restrict javascript to ML8+