Javascript concepts testing