Fix a bug in sample file JavaScript.g