updated to properly use javascript notation