tricks for js