Better javascript practices.