re-organize js files, match constants in features.py and draw.js