Add some javascript handler support with json