Fixed JS errors I introducted with v 0.3