Java script template simple