Fix for beeing compatible for phonegap build