Some javascript patches.