split python / js code