v0.2: refactored js, permit issue classes