python and javascript code added