implement textoverflowclamp.js (bug 939806)

add Function.bind() support