Programmatically toggle the inspector in Javascript