More accurate loadstring (thanks marnano23), fixed mouse events