Add publish java script