Javascript best practices

Testing