A javascrip engine for graphic adventure game