LScript class added to handle dynamic scripts