rename following() -> follow() for consistency
fix bugs in js code