making js and py code work