Added "bind" function

Given that lua and javascript has similar scope characteristics, I've implemented a bind function to bind a function's "self" to a given table.