implement a easy to use javascript inherit way