add 0.12.x compatability (tested against 0.12.2)
clean up javascript
clean up setup.py