Init Java script