add javascript practices