Use new api (kitkat+) to trigger javascript