modified for FB
modified base.js