add missing init function for facebook like button, move code to footer
use shortcut for getElementById