add js fullscreen api.
make filter callback function anon,
so that it is easier to read in IDE