initla javascript code