JavaScript fixed, debug action works