added drama js function