Java script app