Simple JavaScript like language parser