update common javascript