update python and add java script