added the base structure for javascript