Added functions in custom.js

Change-Id: I9ec1f0d97b00559c6e5d0022dd08d9bd4a84ceb3
Signed-off-by: Stephan <stegiemail-github@yahoo.de>