added loading animations from lua
split scripts.lua into several files