Fixing js call