Various: fixes for client side scripts.