Adding automatically scriptManager. Fixes #2