Issue 1157: Unused javascript function is removed.

This refers to https://github.com/friendica/friendica/pull/1157 and https://github.com/friendica/friendica/issues/1135