made changes to the painter javascript files so they compile to android