make base javascript codes